cmake_minimum_required(VERSION 2.6)
PROJECT(openctp)
ADD_SUBDIRECTORY(FABase)
ADD_SUBDIRECTORY(FACore)
ADD_SUBDIRECTORY(FAFlow)
#ADD_SUBDIRECTORY(FALog)
ADD_SUBDIRECTORY(FAMarket)
ADD_SUBDIRECTORY(FAQuote)
ADD_SUBDIRECTORY(FAStrategyCore)
ADD_SUBDIRECTORY(FATrade)
###ADD_SUBDIRECTORY(Quote)
###ADD_SUBDIRECTORY(QuoteSHM)
###ADD_SUBDIRECTORY(QuoteUI)
ADD_SUBDIRECTORY(FAStrategyPlatform)
ADD_SUBDIRECTORY(FAPrint)
ADD_SUBDIRECTORY(FATinyxml)
ADD_SUBDIRECTORY(DemoArbitrageA)
ADD_SUBDIRECTORY(StrategyArbitrageA)
ADD_SUBDIRECTORY(StrategyPlusA)
ADD_SUBDIRECTORY(DemoStrategyPlusA)
ADD_SUBDIRECTORY(StrategyCDW)
ADD_SUBDIRECTORY(DemoStrategyCDW)
ADD_SUBDIRECTORY(FASockServer)
ADD_SUBDIRECTORY(FASockClient)
ADD_SUBDIRECTORY(DemoDBClient)
ADD_SUBDIRECTORY(FADBQuoteServer)
ADD_SUBDIRECTORY(FARedis)
ADD_SUBDIRECTORY(FAMysql)
ADD_SUBDIRECTORY(FAJson)
#ADD_SUBDIRECTORY(FAZip)
ADD_SUBDIRECTORY(FAPack)

#分组
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
#CORE
SET_PROPERTY(TARGET FACore PROPERTY FOLDER "CORE")
SET_PROPERTY(TARGET FAFlow PROPERTY FOLDER "CORE")
SET_PROPERTY(TARGET FAMarket PROPERTY FOLDER "CORE")
SET_PROPERTY(TARGET FAQuote PROPERTY FOLDER "CORE")
SET_PROPERTY(TARGET FAStrategyCore PROPERTY FOLDER "CORE")
SET_PROPERTY(TARGET FAStrategyPlatform PROPERTY FOLDER "CORE")
SET_PROPERTY(TARGET FATrade PROPERTY FOLDER "CORE")

#DB
SET_PROPERTY(TARGET FAMysql PROPERTY FOLDER "DB")
SET_PROPERTY(TARGET FARedis PROPERTY FOLDER "DB")
SET_PROPERTY(TARGET FAJson PROPERTY FOLDER "DB")
#DEMO
SET_PROPERTY(TARGET DemoStrategyCDW PROPERTY FOLDER "DEMO")
SET_PROPERTY(TARGET StrategyPlusA PROPERTY FOLDER "DEMO")
SET_PROPERTY(TARGET StrategyArbitrageA PROPERTY FOLDER "DEMO")
SET_PROPERTY(TARGET DemoArbitrageA PROPERTY FOLDER "DEMO")
SET_PROPERTY(TARGET DemoStrategyPlusA PROPERTY FOLDER "DEMO")
SET_PROPERTY(TARGET StrategyCDW PROPERTY FOLDER "DEMO")
#SOCK
SET_PROPERTY(TARGET FASockClient PROPERTY FOLDER "SOCK")
SET_PROPERTY(TARGET FASockServer PROPERTY FOLDER "SOCK")
#TOOLS
SET_PROPERTY(TARGET FAPrint PROPERTY FOLDER "TOOLS")
SET_PROPERTY(TARGET FATinyxml PROPERTY FOLDER "TOOLS")
SET_PROPERTY(TARGET FABase PROPERTY FOLDER "TOOLS")
#SET_PROPERTY(TARGET FAZip PROPERTY FOLDER "TOOLS")
SET_PROPERTY(TARGET FAPack PROPERTY FOLDER "TOOLS")
#DATACENTER
SET_PROPERTY(TARGET DemoDBClient PROPERTY FOLDER "DATACENTER")
SET_PROPERTY(TARGET FADBQuoteServer PROPERTY FOLDER "DATACENTER")



